﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="PopupControl.aspx.cs" Inherits="Samples.Views.Samples.PopupControl" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div class="demoarea">
        <div class="demoheading">PopupControl</div>
        
        <p>Choose a chore:</p>
        <%= Html.TextBox("ChooseTask") %>
        <div id="popupDiv" class="ContextMenuPanel">
            <a class="ContextMenuItem" href="javascript:setItem('Clean Dishes')">Clean Dishes</a><br />
            <a class="ContextMenuItem" href="javascript:setItem('Mop Floors')">Mop Floors</a><br />
            <a class="ContextMenuItem" href="javascript:setItem('Wash Clothes')">Wash Clothes</a>
        </div>
    </div>
    
    <script type="text/javascript" language="javascript">
        //<![CDATA[
        function setItem(str) {
            var obj = $find('ChooseTask_javascript_id');
            obj._close(str);
        }
        //]]>
    </script>
    
    <%= Ajax.PopupControl("ChooseTask", "popupDiv")%>
</asp:Content>
